﻿using System.Linq;
using OpenWaves.ActivityFeed.UnitTests.Web;

namespace OpenWaves.ActivityFeed.UnitTests
{
    public static class DummyUpdate
    {
        public static Update From(string publisher, params Topic[] topics)
        {
            return new Update(new DummyUpdateContent(), publisher, "", topics, true, Enumerable.Empty<UserGroup>());
        }

        public static IQueryable<Update> ToQueryableList(this Update update)
        {
            return new Update[] { update }.AsQueryable();
        }
    }
}